home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / comm / qread32.zip / SEND.BAT < prev    next >
DOS Batch File  |  1993-12-23  |  2KB  |  58 lines

  1. echo off
  2. rem ------------------------------------------------------------------------
  3. rem QReader passes these parameters to SEND.BAT
  4. rem %1 = modem connect speed
  5. rem %2 = com or fossil port
  6. rem %3 = file name to send
  7. rem %4 = protocol choice (letter)
  8. rem %5 = base address for com ports other than 1 or 2 (DSZ portx option)
  9. rem %6 = IRQ for com ports other than 1 or 2 (DSZ portx option)
  10. rem %7 = locked DTE modem speed
  11. rem ------------------------------------------------------------------------
  12. rem  If using non-standard COM ports (COM ports other than 1 or 2), replace
  13. rem  port %2 in each line below with portx %5,%6 (note comma between %5,%6).
  14. rem ------------------------------------------------------------------------
  15. rem  If you wish to use the GSZ (graphical equivalent to DSZ) protocol,
  16. rem  simply replace each occurrence of DSZ below with GSZ and refer to
  17. rem  QREADER.DOC for configuring PROTOCOL.DAT.  Also place the following
  18. rem  set command in your BBS batch file:  SET GSZWINDOW=21
  19. rem ------------------------------------------------------------------------
  20. rem  If using a FOSSIL driver, a compatible DSZ equivalent must used.
  21. rem ------------------------------------------------------------------------
  22. rem  Note the difference in parameters %1 and %7.  %7 should be used when
  23. rem  the locked speed info is needed (typically with FOSSIL protocols).
  24. rem ------------------------------------------------------------------------
  25. if "%4" == "X" goto :Xmodem
  26. if "%4" == "C" goto :Xmodem
  27. if "%4" == "O" goto :1Kxmodem
  28. if "%4" == "F" goto :1KxmodemG
  29. if "%4" == "Y" goto :Ymodem
  30. if "%4" == "G" goto :YmodemG
  31. if "%4" == "Z" goto :Zmodem
  32. goto :end
  33.  
  34. :Xmodem
  35. DSZ port %2 pB4096 sx %3
  36. goto :end
  37.  
  38. :1Kxmodem
  39. DSZ port %2 pB4096 sx -k %3
  40. goto :end
  41.  
  42. :1KxmodemG
  43. DSZ port %2 pB4096 sx -k -g %3
  44. goto :end
  45.  
  46. :Ymodem
  47. DSZ port %2 pB4096 sb -k %3
  48. goto :end
  49.  
  50. :YmodemG
  51. DSZ port %2 pB4096 sb -k %3
  52. goto :end
  53.  
  54. :Zmodem
  55. DSZ port %2 pB4096 sz -m %3
  56.  
  57. :end
  58.